<%@ include file="/taglibs.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><decorator:title /></title>
    <link href="${ctx}/css/site.css" rel="stylesheet" type="text/css" />
    <script src="${ctx}/treeView/jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
	    function menuRedirect(menuId){
	    	$.ajax({
				url:'${ctx}/indexAction!queryAccess?menuId=' + menuId,
				type:'get',
				timeout:3000,
				dataType:"text",
				success: function(data){
					if(data == '0'){
						alert("您没有访问该菜单的权限!");
						return false;
					}else{
						if(menuId == 1){
							window.location.href = "${ctx}/indexAction";
						}else if(menuId == 2){
							window.location.href = "${ctx}/UserAction_personCenter";
						}
						return false;
					}
				}
			});
	    }
	    
	    $(document).ready(function() {
			$(".list-table tr:even").css("background", "#feec80");
			$(".list-table tr:odd").css("background", "#ffffff"); 
			$(".list-table tr").bind("mouseover", function(){
				var rowNum = this.rowIndex;
				if(rowNum == 0)
					return;
				
				$(this).css("background", "#ffab34");
				$(this).css("cursor", "pointer");
				$(this).css("color", "white");
			});
			$(".list-table tr").bind("mouseout", function(){
				var rowNum = this.rowIndex;
				if(rowNum == 0)
					return;
				if(rowNum % 2 == 0){
					$(this).css("background", "#feec80"); 
				}else{
					$(this).css("background", "#ffffff");
				}
				$(this).css('color', 'black');
			});
		});
    </script>
    <decorator:head/>
</head>
<body>
<div id="frameBanner"></div>
<table cellpadding="0" cellspacing="0" id="frameNavBar" align="center">
    <tr>
        <td><a href="${ctx}/indexAction" >网站首页</a></td>
        <td><a href="${ctx}/UserAction_personCenter" onclick="return true;">个人中心</a></td>
        <td><a href="" onclick="return menuRedirect(3)">党建动态</a></td>
		<td><a href="" onclick="return menuRedirect(4)">学习园地</a></td>
        <td><a href="" onclick="return menuRedirect(5)">支部在线</a></td>
        <td><a href="${ctx}/VideoAction_view" onclick="return true;">影视精品</a></td>
        <td class="time">
        <script language="JavaScript" type="text/javascript"> 
        <!--
            var y = new Date();
            var gy = y.getYear();
            var dName = new Array(" (星期天)", " (星期一)", " (星期二)", " (星期三)", " (星期四)", " (星期五)", " (星期六)");
            var mName = new Array("1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月");
            document.write("<FONT COLOR=\"#ffffff\" class=\"p1\">" + y.getFullYear() + "年" + mName[y.getMonth()] + y.getDate() + "日" + dName[y.getDay()] + "</FONT>");
        //--> 
        </script>
        </td>
    </tr>
</table>


<div id="homeContent">
<decorator:body/>
</div>
<!-- footer start -->
<div style="clear:both; height:0px;">&nbsp;</div>
<div id="frameFooter">
	<div style="width:100%; height:0px;">&nbsp;</div>
    <ul style="list-style-type:none;">
        <li><a href="${ctx }/pages/common/index/website_sm.html" target="_blank">网站声明</a>&nbsp;|&nbsp;<a href="${ctx }/pages/common/index/about_us.html" target="_blank">关于我们</a>&nbsp;|&nbsp;<a href="${ctx }/pages/common/index/contact_us.html" target="_blank">联系我们</a></li>
        <li>Copyright &copy; 2011 All rights reserved.&nbsp;&nbsp;&nbsp;&nbsp;版权所有：北京邮电大学党委组织部</li>
    </ul>   
</div>
</body>
</html>